|
In mathematics and theoretical computer science, an unavoidable pattern is a pattern of symbols that must occur in any sufficiently long string over an alphabet. An avoidable pattern is one for which there are infinitely many words no part of which match the pattern. Zimin words are an example of unavoidable patterns. These are formed by inserting a new letter between two instances of the previous Zimin word, i.e., the first Zimin word A is used to create the second Zimin word ABA, which in turn creates ABACABA and then ABACABADABACABA and so on. It is unavoidable that any string, containing two unique characters, that is five or more characters long will contain a pattern of the form ABA (the second Zimin word). Using three unique characters any string containing 29 or more characters will contain a pattern of the form ABACABA Let ''A'' be an alphabet of letters and ''E'' a disjoint alphabet of pattern symbols or "variables". Elements of ''E''+ are patterns. For a pattern ''p'', the pattern language is that subset of ''A''∗ containing all words ''h''(''p'') where ''h'' is a non-erasing semigroup morphism from the free monoid ''E''∗ to ''A''∗. A word ''w'' in ''A''∗ matches or meets ''p'' if it contains some word in the pattern language as a factor, otherwise ''w'' avoids ''p''.〔Lothaire (2011) p. 112〕〔Allouche & Shallit (2003) p.24〕 A pattern ''p'' is avoidable on ''A'' if there are infinitely many words in ''A''∗ that avoid ''p''; it is unavoidable on ''A'' if all sufficiently long words in ''A''∗ match ''p''. We say that ''p'' is ''k''-unavoidable if it is unavoidable on every alphabet of size ''k'' and correspondingly ''k''-avoidable if it is avoidable on an alphabet of size ''k''.〔Lothaire (2011) p. 113〕〔Berstel et al (2009) p.127〕 There is a word ''W''(''k'') over an alphabet of size 4''k'' which avoids every avoidable pattern with less than 2''k'' variables.〔Lothaire (2011) p. 122〕 ==Examples== * The Thue–Morse sequence avoids the patterns ''xxx'' and ''xyxyx''.〔〔 * The patterns ''x'' and ''xyx'' are unavoidable on any alphabet.〔〔Lothaire (2011) p.115〕 * The power pattern ''xx'' is 3-avoidable;〔〔 words avoiding this pattern are ''square-free''.〔〔Lothaire (2011) p. 114〕 * The power patterns ''x''''n'' for ''n'' ≥ 3 are 2-avoidable: the Thue–Morse sequence is an example for ''n''=3.〔 * Sesquipowers are unavoidable.〔 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Unavoidable pattern」の詳細全文を読む スポンサード リンク
|